home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Auge 4000 / Auge 4000 #47 (1990-06-22)(Amiga User Gruppe Einzugsgebiet 4000).zip / Auge 4000 #47 (1990-06-22)(Amiga User Gruppe Einzugsgebiet 4000).adf / ARP-DOCS1.3 / Protect < prev    next >
Text File  |  1990-06-22  |  4KB  |  133 lines

  1.  
  2.  
  3.  
  4.      Protect(V1.3)           ARP User's Manual           Protect(V1.3)
  5.  
  6.  
  7.  
  8.      NAME
  9.           Protect - To set file(s) protection status.
  10.  
  11.      SYNOPSIS
  12.           Protect File/a Flags ADD SUB ALL/s FILES/s DIRS/s Q=QUIET/s
  13.  
  14.      DESCRIPTION
  15.           Protect is used to set the protection level of a file or
  16.           files.  You may set the protection level for multiple files
  17.           or directories at a time using wildcards. The flags that you
  18.           may set are:
  19.  
  20.             h  - hidden   file is protected from listing (not supported)
  21.             a  - archive  file has been archived (set by backup programs)
  22.             p  - pure     file may be made resident without fear
  23.             s  - script   file is a script (supported by some shells)
  24.             r  - read     file is readable (supported by some commands)
  25.             w  - write    file is writable (supported by some commands)
  26.             e  - execute  file is executable  (supported by some shells)
  27.             d  - delete   file is deleted (system supported)
  28.  
  29.           Setting or adding a flag allows the associated action.
  30.           Clearing or subtracting the flag disallows that action.  You
  31.           can specify a completely new set of flags for a file by
  32.           simply listing the flags you want to be turned on for that
  33.           file (or files).  If you omit a flag, that flag will be
  34.           cleared.  Protect with no flags disallows all protections
  35.           for the file(s) in question.
  36.  
  37.           You can also add or subtract flags to the current set using
  38.           the ADD and SUB keywords (see below) or by preceding the
  39.           flags with a '+' character or a '-' character, respectively.
  40.  
  41.           To view the protection bits for a specific filename, you use
  42.           the List command.
  43.  
  44.      OPTIONS
  45.           ADD  The flags given are to be added to the current set for
  46.                the file(s) in question. Other than adding these flags,
  47.                the original protection bits of the file(s) will be
  48.                left unchanged.  Another way to obtain this behavior is
  49.                to use a '+' character as the first character of the
  50.                flags you wish to add.
  51.  
  52.           SUB  The flags given are to be removed from the current set
  53.                for the file(s) in question.  Other than subtracting
  54.                these flags, the original protection bits of the
  55.                file(s) will not affected.  Another way to obtain this
  56.                behavior is use a '-' character as the first character
  57.                of the flags you wish to subtract.
  58.  
  59.           ALL  Recursively descend directories, performing the desired
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 4/28/89)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      Protect(V1.3)           ARP User's Manual           Protect(V1.3)
  71.  
  72.  
  73.  
  74.                operation on each file and directory for that branch of
  75.                the directory tree.
  76.  
  77.           FILES
  78.                When using wildcards or the ALL keyword, Protect will
  79.                change the protection bits for both files and
  80.                directories.  Using this keyword will cause protect to
  81.                only change the protection bits for Files.
  82.  
  83.           DIRS Like FILES, but changes the protection bits only for
  84.                directories.
  85.  
  86.           Q=QUIET
  87.                This causes Protect to do its work silently, without
  88.                displaying the files and/or directories it is operating
  89.                on.
  90.  
  91.      EXAMPLE
  92.           Protect *.c -d
  93.           Keep all files ending in .c from being deleted by
  94.           subtracting the d flag for these files.
  95.  
  96.           Protect * +se
  97.           Turn on the script and execute bits.  These bits allow some
  98.           shells to execute the scripts as though they were programs.
  99.  
  100.      SEE ALSO
  101.           List
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/28/89)
  130.  
  131.  
  132.  
  133.